package c.e.a.b.e.c;

import c.e.a.b.e.c.u4.b;
import java.util.List;
import java.util.Objects;

/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
public final class d1 extends u4<d1, a> implements f6 {
    /* access modifiers changed from: private|static|final */
    public static final d1 zzd;
    private static volatile l6<d1> zze;
    private b5<e1> zzc = o6.d;

    /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
    public static final class a extends b<d1, a> implements f6 {
        public a() {
            super(d1.zzd);
        }

        public final a m(c.e.a.b.e.c.e1.a aVar) {
            if (this.c) {
                j();
                this.c = false;
            }
            d1.w((d1) this.b, (e1) ((u4) aVar.l()));
            return this;
        }

        public a(k1 k1Var) {
            super(d1.zzd);
        }
    }

    static {
        d1 d1Var = new d1();
        zzd = d1Var;
        u4.r(d1.class, d1Var);
    }

    public static void w(d1 d1Var, e1 e1Var) {
        Objects.requireNonNull(d1Var);
        b5 b5Var = d1Var.zzc;
        if (!b5Var.q()) {
            d1Var.zzc = u4.m(b5Var);
        }
        d1Var.zzc.add(e1Var);
    }

    public static a x() {
        return (a) zzd.s();
    }

    public final Object o(int i, Object obj, Object obj2) {
        switch (k1.a[i - 1]) {
            case 1:
                return new d1();
            case 2:
                return new a(null);
            case 3:
                Object[] objArr = new Object[]{"zzc", e1.class};
                return new q6(zzd, "\u0001\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b", objArr);
            case 4:
                return zzd;
            case 5:
                Object obj3 = zze;
                if (obj3 == null) {
                    synchronized (d1.class) {
                        obj3 = zze;
                        if (obj3 == null) {
                            obj3 = new c.e.a.b.e.c.u4.a(zzd);
                            zze = obj3;
                        }
                    }
                }
                return obj3;
            case 6:
                return Byte.valueOf((byte) 1);
            case 7:
                return null;
            default:
                throw new UnsupportedOperationException();
        }
    }

    public final e1 u() {
        return (e1) this.zzc.get(0);
    }

    public final List<e1> v() {
        return this.zzc;
    }
}
